package com.ifood.common.core.domain.entity;

import java.math.BigDecimal;

import com.ifood.common.annotation.Excel;
import com.ifood.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单对象 food_order_master
 *
 * @author ifood
 * @date 2024-01-14
 */
public class FoodOrderMaster extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty("主键ID")
    private String orderId;

    /**
     * 买家名字
     */
    @Excel(name = "买家名字")
    @ApiModelProperty("买家名字")
    private String buyerName;

    /**
     * 买家电话
     */
    @Excel(name = "买家电话")
    @ApiModelProperty("买家电话")
    private String buyerPhone;

    /**
     * 买家地址
     */
    @Excel(name = "买家地址")
    @ApiModelProperty("买家地址")
    private String buyerAddress;

    /**
     * 买家微信openid
     */
    @Excel(name = "买家微信openid")
    @ApiModelProperty("买家微信openid")
    private String buyerOpenid;

    /**
     * 订单总金额
     */
    @Excel(name = "订单总金额")
    @ApiModelProperty("订单总金额")
    private BigDecimal orderAmount;

    /**
     * 订单状态, 默认为新下单
     */
    @Excel(name = "订单状态, 默认为新下单")
    @ApiModelProperty("订单状态, 默认为新下单")
    private Long orderStatus;

    /**
     * 支付状态, 默认未支付
     */
    @Excel(name = "支付状态, 默认未支付")
    @ApiModelProperty("支付状态, 默认未支付")
    private Long payStatus;

    /**
     * 是否删除0默认1删除
     */
    @ApiModelProperty("支付状态, 默认未支付")
    private String delFlag;

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setBuyerName(String buyerName) {
        this.buyerName = buyerName;
    }

    public String getBuyerName() {
        return buyerName;
    }

    public void setBuyerPhone(String buyerPhone) {
        this.buyerPhone = buyerPhone;
    }

    public String getBuyerPhone() {
        return buyerPhone;
    }

    public void setBuyerAddress(String buyerAddress) {
        this.buyerAddress = buyerAddress;
    }

    public String getBuyerAddress() {
        return buyerAddress;
    }

    public void setBuyerOpenid(String buyerOpenid) {
        this.buyerOpenid = buyerOpenid;
    }

    public String getBuyerOpenid() {
        return buyerOpenid;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderStatus(Long orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Long getOrderStatus() {
        return orderStatus;
    }

    public void setPayStatus(Long payStatus) {
        this.payStatus = payStatus;
    }

    public Long getPayStatus() {
        return payStatus;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("orderId", getOrderId())
                .append("buyerName", getBuyerName())
                .append("buyerPhone", getBuyerPhone())
                .append("buyerAddress", getBuyerAddress())
                .append("buyerOpenid", getBuyerOpenid())
                .append("orderAmount", getOrderAmount())
                .append("orderStatus", getOrderStatus())
                .append("payStatus", getPayStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
